-- GENERATED SPELL FOR [Stormscale Sorceress] --


function spell0_2182(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_2182', 0, 1)
end

function spell1_2182(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20792,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2182', 7000, 1)
end

function Sorts_2182(pUnit, Event)
local choix_sorts_2182 = math.random(0, 1)
if choix_sorts_2182 == 0 then
pUnit:RegisterEvent('spell0_2182', 1, 1)
end
if choix_sorts_2182 == 1 then
pUnit:RegisterEvent('spell1_2182', 1, 1)
end
end

function mob2182_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2182', math.random(1500, 3000), 1)
end

function mob2182_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2182_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2182_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2182, 1, 'mob2182_Action')
RegisterUnitEvent(2182, 2, 'mob2182_Leave')
RegisterUnitEvent(2182, 3, 'mob2182_Kill')
RegisterUnitEvent(2182, 4, 'mob2182_Die')
